package blocstac.editimage.base
{
import org.mockito.api.Answer;
import org.mockito.api.StubbingContext;
import org.mockito.api.StubbingContextAware;

public class ReturnArg implements Answer, StubbingContextAware
{
	private var _index:int
	private var _context:StubbingContext

	function ReturnArg(index:int) {
		_index = index
	}

	public function give():* {
		return _context.args[_index]
	}
	
	public function useContext(context:StubbingContext):void {
		_context = context
	}
	
}
}